package com.xianzhiOA.dao;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/5/19.
 */
public interface BaseMapper <T,E,PK extends Serializable> {

    int deleteByPrimaryKey(PK pk);

    int insert(T record);

    List<T> selectAll(E search);

    int insertSelective(T record);

    T selectByPrimaryKey(PK pk);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);

}